package com.zyj.spring.annotationaop.service;

import com.zyj.spring.annotationaop.dao.OrderDao;
import com.zyj.spring.annotationaop.model.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("orderService")
public class OrderServiceImpl implements OrderService {

    @Autowired
    private OrderDao orderDao;

    @Override
    public List<Order> findOrders() {
        return orderDao.selectList();
    }
}
